package com.mfangsoft.zhuangjialong.app.order.service;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.app.order.model.OrderInfo;
import com.mfangsoft.zhuangjialong.app.order.model.OrderPromote;
import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.model.ResponseMessage;

public interface IAppOrderService {

	void addOrder(OrderInfo baseOrder);
	ResponseMessage<Map<String,Object>> checkOrder(Map<String,Object> map)throws Exception;
	ResponseMessage<Map<String,Object>> createOrder(Map<String,Object> map) throws Exception;

	OrderInfo selectOrderDetail(Integer orderId);
	
	void updateRefreshOrder(Map<String,Object> map)throws Exception;
	void updateOrder(Map<String,Object> orderCode);
	
	Page<OrderInfo> selectSellerOrderPage(Page<OrderInfo> page);
	
	Page<OrderInfo> selectCustomerOrderPage(Page<OrderInfo> page);

	/**
	 * 根据导购的id查询他下面所有的消费者订单
	 * @param page
	 * @return
	 */
	Page<OrderPromote> selectOrdersByUserManagerId(Page<OrderPromote> page);
	
	void updateOrderStatus(OrderInfo order);
	ResponseMessage<List<Map<String,Object>>> selectCustomerActivity(Map<String,Object> customerId);
}
